home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / LITTLE / A3DEV.ZIP / AFD.INC < prev    next >
Encoding:
Text File  |  1996-11-12  |  2.0 KB  |  46 lines

  1.  
  2. *-------------------------------------------------------*
  3. *    Apex File Driver [AFD] control structure    *
  4. *-------------------------------------------------------*
  5.  
  6. *-------------------------------------------------------*
  7.             rsreset
  8. *-------------------------------------------------------*
  9. *    Apex memory/subsystem routines            *
  10. *-------------------------------------------------------*
  11. afd_malloc        rs.l    1    ; Apex Malloc routine (in)
  12. afd_dealloc        rs.l    1    ; Apex Mfree routine (in)
  13. afd_salloc        rs.l    1    ; Apex stacked malloc routine (in)
  14. afd_thread        rs.l    1    ; Apex background thread (in)
  15. *-------------------------------------------------------*
  16. *    Error-trapped BIOS filesystem routines        *
  17. *-------------------------------------------------------*
  18. afd_open        rs.l    1    ; Fopen (in)
  19. afd_close        rs.l    1    ; Fclose (in)
  20. afd_create        rs.l    1    ; Fcreate (in)
  21. afd_read        rs.l    1    ; Fread (in)
  22. afd_write        rs.l    1    ; Fwrite (in)
  23. afd_seek        rs.l    1    ; Fseek (in)
  24. afd_examine        rs.l    1    ; Fseek + Fread (in)
  25. afd_patch        rs.l    1    ; Fseek + Fwrite (in)
  26. *-------------------------------------------------------*
  27. *    AFD (module) specific structure            *
  28. *-------------------------------------------------------*
  29. afd_extension        rs.l    1    ; pointer to format extension string (out)
  30. afd_inquire        rs.l    1    ; format inquire routine address (out)
  31. afd_decode        rs.l    1    ; format decoder routine address (out)
  32. afd_encode        rs.l    1    ; format encoder routine address (out)
  33. afd_colour        rs.w    1    ; format highlight colour
  34. afd_id            rs.w    1    ; format id
  35. *-------------------------------------------------------*
  36. *    Bidirectional file structure            *
  37. *-------------------------------------------------------*
  38. afd_width        rs.w    1    ; image width (in/out)
  39. afd_height        rs.w    1    ; image height (in/out)
  40. afd_imageptr        rs.l    1    ; 32bit imagebuffer pointer (in)
  41. afd_filesize        rs.l    1    ; file size in bytes (in)
  42. afd_filename        rs.b    1024    ; 1k filename string buffer (in)
  43. afd_gpbuffer        rs.b    1024    ; 1k general purpose buffer (in)
  44. *-------------------------------------------------------*
  45.  
  46.